/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.common.test.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @desc:
 * @author: shollin
 * @date: 2021/6/17/017 23:39
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TUser {

    private Long id;

    private Integer age;

    @NotBlank(message="用户名不能为空")
    private String username;

    @Email
    private String email;

    private String phone;

    private String headPhoto;

    private BigDecimal salary;

    private LocalDate birthday;

    private Date createTime;

    private LocalDateTime updateTime;

    private TUser parent;

}
